package com.cetcs.kmga.dataManager.entity.sysManager.vi;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * 类注释
 *
 * @author yyangs
 * @version V1.0 创建时间：2017-09-05 15:12
 * Copyright 2017 by CETC
 */
public class LocalServerInfoVi {
    //设备ip
    @Pattern(regexp = "^((25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))$", message= "ip格式不正确")
    private String ip;
    //设备版本
    @NotEmpty(message = "设备版本号不能为空")
    private String serverVersion;
    //设备名称
    @NotEmpty(message = "设备名称不能为空")
    private String serverName;
    //设备位置
    @NotEmpty(message = "设备位置不能为空")
    private String serverLocation;
    //管理员姓名
    @NotEmpty(message = "管理员姓名不能为空")
    private String adminName;
    //管理员电话
    @NotEmpty(message = "管理员电话不能为空")
    private String adminPhone;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getServerVersion() {
        return serverVersion;
    }

    public void setServerVersion(String serverVersion) {
        this.serverVersion = serverVersion;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getServerLocation() {
        return serverLocation;
    }

    public void setServerLocation(String serverLocation) {
        this.serverLocation = serverLocation;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminPhone() {
        return adminPhone;
    }

    public void setAdminPhone(String adminPhone) {
        this.adminPhone = adminPhone;
    }
}
